package org.uim.cricket.entities.batting;

import org.uim.cricket.entities.Player;
import org.uim.cricket.entities.partnerships.FallOfWicket;

public class BatsmanOutDetails {

	private OutTypes outType = null;
	private Player bowler = null;
	private Player[] fielders = null;
	private boolean[] wicketKeeperFielders = null;
	private int outAsWicket = -1;
	private FallOfWicket fallofWicket = null;
	
	public void setOutAsWicket(int outAsWicket) {
		this.outAsWicket = outAsWicket;
	}
	
	public int getOutAsWicket() {
		return outAsWicket;
	}
	
	public void setOutType(OutTypes outType) {
		this.outType = outType;
	}
	
	public OutTypes getOutType() {
		return outType;
	}

	public boolean[] getWicketKeeperFielders() {
		return wicketKeeperFielders;
	}

	public void setWicketKeeperFielders(boolean[] wicketKeeperFielders) {
		this.wicketKeeperFielders = wicketKeeperFielders;
	}

	public void setFielders(Player[] fielders) {
		this.fielders = fielders;
	}

	public void setBowler(Player bowler) {
		this.bowler = bowler;
	}

	public Player[] getFielders() {
		return fielders;
	}

	public Player getBowler() {
		return bowler;
	}
	
	public void setFallofWicket(FallOfWicket fallofWicket) {
		this.fallofWicket = fallofWicket;
	}
	
	public FallOfWicket getFallofWicket() {
		return fallofWicket;
	}

}
